package constants;

public enum Period {
	// Periods as doubles as we'll be dividing them
	MONTHLY (1.0),
	QUARTERLY(3.0),
	SEMI_ANNUALY (6.0),
	YEARLY (12.0);
	
	private double monthsInPeriod;
	
	Period (double monthsInPeriod) {
		this.monthsInPeriod = monthsInPeriod;
	}
	
	/**
	 * @return The amount of months in this period as a double
	 */
	public double getMonthsInPeriod() {
		return this.monthsInPeriod;
	}
}